<?php

namespace ABonus\Bundle\ExtractBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * Bloc
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="ABonus\Bundle\ExtractBundle\Repository\SectorRepository")
 */
class Sector
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;


    /**
     * @var string
     *
     * @ORM\Column(name="GpsParkingLot", type="string", length=255)
     */
    private $gpsParkingLot;

    /**
     * @var string
     *
     * @ORM\Column(name="Name", type="string", length=255)
     */
    private $name;


    /**
     * @ORM\OneToMany(targetEntity="Bloc", mappedBy="sector", cascade={"remove", "persist"})
     **/
    private $blocs;



    /**
     * @ORM\Column(name="numberOf7a", type="string", length=255)
     **/
    private $numberOf7a;


    public function __construct() {
        $this->blocs = new ArrayCollection();
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return Bloc
     */
    public function setGpsParkingLot($gpsParkingLot)
    {
        $this->gpsParkingLot = $gpsParkingLot;

        return $this;
    }

    /**
     * Get description
     *
     * @return string
     */
    public function getGpsParkingLot()
    {
        return $this->gpsParkingLot;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Bloc
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set name
     *
     * @param ArrayCollection $blocs
     * @return Sector
     */
    public function setBlocs(ArrayCollection $blocs)
    {
        $this->blocs = $blocs;

        return $this;
    }

    public function getBlocs()
    {
        return $this->blocs;
    }


    public function addBloc(Bloc $bloc)
    {
        $this->blocs[] = $bloc;
    }


    /**
     * Sets the value of id.
     *
     * @param integer $id the id
     *
     * @return self
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * Gets the value of numberOf7a.
     *
     * @return mixed
     */
    public function getNumberOf7a()
    {
        return $this->numberOf7a;
    }

    /**
     * Sets the value of numberOf7a.
     *
     * @param mixed $numberOf7a the number of7a
     *
     * @return self
     */
    public function setNumberOf7a($numberOf7a)
    {
        $this->numberOf7a = $numberOf7a;

        return $this;
    }

    /**
     * Gets the value of blocPerPages.
     *
     * @return mixed
     */
    public function getBlocPerPages()
    {
        return $this->blocPerPages;
    }

    /**
     * Sets the value of blocPerPages.
     *
     * @param mixed $blocPerPages the bloc per pages
     *
     * @return self
     */
    public function setBlocPerPages($blocPerPages)
    {
        $this->blocPerPages = $blocPerPages;

        return $this;
    }
}
